import request from '@/utils/request'

export function queryFac(data) {
    return request({
        url: '/facility/getFacList',
        method: 'post',
        data
    })
}
export function getFacCount() {
    return request({
        url: '/facility/getFacCount',
        method: 'get',
    })
}
export function insertFac(data) {
    return request({
        url: '/facility/insertFac',
        method: 'post',
        data
    })
}
export function delFac(data) {
    return request({
        url: '/facility/delFac',
        method: 'post',
        data
    })
}
export function delFault(data) {
    return request({
        url: '/facility/delFault',
        method: 'post',
        data
    })
}
export function bindFac(data) {
    return request({
        url: '/facility/bindFac',
        method: 'post',
        data
    })
}
export function unBindFac(data) {
    return request({
        url: '/facility/unBindFac',
        method: 'post',
        data
    })
}
export function getRepairList(data) {
    return request({
        url: '/facility/getRepairList',
        method: 'post',
        data
    })
}
export function getMaintainList(data) {
    return request({
        url: '/facility/getMaintainList',
        method: 'post',
        data
    })
}
export function getFaultList(data) {
    return request({
        url: '/facility/getFaultList',
        method: 'post',
        data
    })
}

export function editFac(data) {
    return request({
        url: '/facility/editFac',
        method: 'post',
        data
    })
}

export function delRepair(data) {
    return request({
        url: '/facility/delRepair',
        method: 'post',
        data
    })
}
export function delMain(data) {
    return request({
        url: '/facility/delMaintain',
        method: 'post',
        data
    })
}

export function submitRepair(data) {
    return request({
        url: '/facility/insertRepair',
        method: 'post',
        data
    })
}

export function editRepair(data) {

    return request({
        url: '/facility/editRepair',
        method: 'post',
        data
    })
}
export function submitMaintain(data) {
    return request({
        url: '/facility/submitMaintain',
        method: 'post',
        data
    })
}
// export function queryYear(data) {
//     return request({
//         url: '/facility/queryyearfac',
//         method: 'post',
//         data
//     })
// }
export function queryFacNumber(data) {
    return request({
        url: '/facility/staticFacNumber',
        method: 'post',
        data
    })
}